add_library(add_plugin SHARED add_plugin.cpp)

#CMAKE_SOURCE_DIR指的是根目录的CMakeLists
target_include_directories(add_plugin PRIVATE ${CMAKE_SOURCE_DIR}/include) #include/plugin_interface.h
set_target_properties(add_plugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/add_plugin)